package ru.spesit.ads.mailru
{
	import flash.display.Sprite;
	import flash.events.Event;
	
	/**
	 * Class AllInOneContainer ...
	 * @author Yuriy (Mur4ik) Kulkoff
	 * @version 0.1
	 * @date 17.06.2010
	 */
	public class AllInOneContainer extends Sprite
	{
		private var _wideBanner:WideBanner;
		private var _richmediaBanner:RichMediaBanner;
		
		public function AllInOneContainer() 
		{
			
			addEventListener(Event.ADDED_TO_STAGE, initInstance);
		}
		
		private function initInstance(event:Event):void 
		{
			removeEventListener(Event.ADDED_TO_STAGE, initInstance);
			
			addBanners();
		}
		
		//=============================================================================
		//{region							PUBLIC METHODS
		//=============================================================================
		
		//} endregion PUBLIC METHODS ==================================================
		
		
		//=============================================================================
		//{region						PRIVATE/PROTECTED METHODS
		//=============================================================================
		
		private function addBanners():void
		{
			_richmediaBanner = new RichMediaBanner();
			addChild(_richmediaBanner);
			
			_wideBanner = new WideBanner();
			addChild(_wideBanner);
		}
		
		//} endregion PRIVATE METHODS =================================================
		
		
		//=============================================================================
		//{region							EVENTS HANDLERS
		//=============================================================================
		
		//} endregion EVENTS HANDLERS =================================================
		
		
		//=============================================================================
		//{region							GETTERS/SETTERS
		//=============================================================================
		
		//} endregion GETTERS/SETTERS =================================================
	}
}